package nmrworkflow.framework.functionwrappers;

import java.util.Vector;


public class Function {
	
	private String name;
	private Vector<Argument> arguments;
	
	public Function(String name) {
		this.name = name;
		arguments = new Vector<Argument>();
	}
	
	public void addArgument(Argument a) {
		arguments.add(a);
	}
	
	public void addArgument(String key, String value) {
		addArgument(new Argument(key, value));
	}
	
	public void addArgument(String key, Number value) {
		addArgument(new Argument(key, value));
	}

	public Vector<Argument> getArguments() {
		return arguments;
	}

	public void setArguments(Vector<Argument> arguments) {
		this.arguments = arguments;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	
}
